package threading;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Microsoft
 * Date: 2023-07-07
 * Time: 16:21
 */
public class ThreadDemo11 {
    public static void main(String[] args) {
        Thread t = Thread.currentThread();//在哪个线程调用，就获得哪个线程的实例
        System.out.println(t.getName());//获取t线程的名字
    }
}
